
public class Employee {
	private int id;
	private String firstName;
	private String lastName;
	private int salary;
	
	public Employee(int i,String fn,String ln,int s){
		id=i;
		firstName=fn;
		lastName=ln;
		salary=s;
	}
	public int getID(){
		return id;
	}
	public String getFirstName(){
		return firstName;
	}
	public String getLastName(){
		return lastName;
	}	
	public String getName(){
		return firstName+" "+lastName;
	}
	public int getSalary(){
		return salary;
	}
	public void setSalary(int s){
		salary=s;
	}
	public int getAnnualSalary(){
		return 12*salary;
	}
	public int raiseSalary(int percent){
		double a = (double)percent;
		salary=(int) (salary+salary*a/100);
		return salary;
	}
	public String toString(){
		return "Employee[id="+id+",name:"+firstName+lastName+",salary="+salary+"]";
	}
}
